<%@ page language="java" contentType="text/html; charset=UTF-8"
    import="org.windblog.core.*,org.windblog.core.entity.*,java.util.Date" pageEncoding="UTF-8"%>
<%@page import="org.windblog.api.template.TemplateService"%>  

<jsp:include page="header.jsp"></jsp:include>

<div id="content" class="narrowcolumn">

<%

if (TemplateService.havePosts()){
	while (TemplateService.havePosts()) 
	{
		TemplateService.thePost();
	%>
	<div <%=TemplateService.postClass() %> id="post-<%=TemplateService.theID() %>">
	<h2><a href="<%=TemplateService.thePermalink() %>" rel="bookmark" title="Permanent Link to <%=TemplateService.theTitle() %>"><%=TemplateService.theTitle() %></a></h2>
	<small><%=TemplateService.theTime()%> <!-- by <%=TemplateService.theAuthor() %> --></small>
	<div class="entry">
					<%=TemplateService.theContent() %>
	</div>
	<p class="postmetadata">
	Posted in <%=TemplateService.theCategory(", ") %> | 
	<%=TemplateService.editPostLink("Edit | ") %>  
	<%=TemplateService.commentsPopupLink("No Comments &#187;", "1 Comment &#187;", "% Comments &#187;") %>
	</p>
	
	</div>
	
	
			
	<%
	}
}//end if
	%>
</div>
<jsp:include page="sidebar.jsp"></jsp:include>
<jsp:include page="footer.jsp"></jsp:include>

